public class Test {
    public static void main(String[] args) {
        MyList myList = new MyList();

       /* myList.addFirst(7);
        myList.addLast(3);*/
        myList.addLast(8);
        myList.addLast(1);
        myList.addLast(4);
        myList.show();
        System.out.println();
        myList.partition(2);
        myList.show();
    }

    public static void main4(String[] args) {
        MyList myList = new MyList();
        myList.addFirst(6);

        myList.addLast(2);
        myList.addLast(8);
        myList.addLast(50);
        myList.addLast(60);
        myList.show();
        System.out.println();
         myList.partition1(9);
         myList.show();
    }
    public static void main3(String[] args) {
        MyList myList = new MyList();
        myList.addFirst(3);
        myList.addFirst(6);
        myList.addFirst(3);
        myList.addFirst(9);
        myList.addFirst(3);
        myList.show();
        System.out.println();

        myList.removeAll(3);
        myList.show();
        myList.addLast(1);
        myList.addLast(2);
        myList.addLast(3);
        myList.addLast(4);
        myList.addLast(5);
        System.out.println("");
        myList.reverseList();
        myList.show();

    }
    public static void main2(String[] args) {
        MyList myList = new MyList();
        myList.addFirst(1);
        myList.addFirst(2);
        myList.addFirst(3);
        myList.addFirst(4);
        myList.addFirst(5);
        myList.show();
        System.out.println();
        //myList.add(0,99);
        myList.add(6,99);
        myList.add(3,99);
        myList.show();
        System.out.println();
        myList.remove(99);
        myList.remove(5);
        myList.show();

        myList.remove(0);
        myList.show();

    }
    public static void main1(String[] args) {
        MyList myList = new MyList();
        myList.createNode();
        myList.show();
        System.out.println("--------");

        boolean bool = myList.contains(3);
        System.out.println(bool);

        int size = myList.size();
        System.out.println(size);

        System.out.println("---------");
        myList.addFirst(99);
        myList.addFirst(88);
        myList.addFirst(77);
        myList.show();
        System.out.println();
        myList.addLast(666);
        myList.show();
    }
}
